package com.jindy.module.outboundorder.service.impl;

import java.util.List;

import com.jindy.module.outboundorder.domain.OutboundOrderProduct;
import com.jindy.module.outboundorder.mapper.OutboundOrderProductMapper;
import com.jindy.module.outboundorder.service.IOutboundOrderProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 出库单-产品Service业务层处理
 *
 * @author ruoyi
 * @date 2022-10-18
 */
@Service
public class OutboundOrderProductServiceImpl implements IOutboundOrderProductService
{
    @Autowired
    private OutboundOrderProductMapper outboundOrderProductMapper;

    /**
     * 查询出库单-产品
     *
     * @param id 出库单-产品主键
     * @return 出库单-产品
     */
    @Override
    public OutboundOrderProduct selectOutboundOrderProductById(Long id)
    {
        return outboundOrderProductMapper.selectOutboundOrderProductById(id);
    }

    /**
     * 查询出库单-产品列表
     *
     * @param outboundOrderProduct 出库单-产品
     * @return 出库单-产品
     */
    @Override
    public List<OutboundOrderProduct> selectOutboundOrderProductList(OutboundOrderProduct outboundOrderProduct)
    {
        return outboundOrderProductMapper.selectOutboundOrderProductList(outboundOrderProduct);
    }

    /**
     * 新增出库单-产品
     *
     * @param outboundOrderProduct 出库单-产品
     * @return 结果
     */
    @Override
    public int insertOutboundOrderProduct(OutboundOrderProduct outboundOrderProduct)
    {
        return outboundOrderProductMapper.insertOutboundOrderProduct(outboundOrderProduct);
    }

    /**
     * 修改出库单-产品
     *
     * @param outboundOrderProduct 出库单-产品
     * @return 结果
     */
    @Override
    public int updateOutboundOrderProduct(OutboundOrderProduct outboundOrderProduct)
    {
        return outboundOrderProductMapper.updateOutboundOrderProduct(outboundOrderProduct);
    }

    /**
     * 批量删除出库单-产品
     *
     * @param ids 需要删除的出库单-产品主键
     * @return 结果
     */
    @Override
    public int deleteOutboundOrderProductByIds(Long[] ids)
    {
        return outboundOrderProductMapper.deleteOutboundOrderProductByIds(ids);
    }

    /**
     * 删除出库单-产品信息
     *
     * @param id 出库单-产品主键
     * @return 结果
     */
    @Override
    public int deleteOutboundOrderProductById(Long id)
    {
        return outboundOrderProductMapper.deleteOutboundOrderProductById(id);
    }
}
